package filter;

import org.apache.mina.core.filterchain.IoFilterAdapter;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.core.write.WriteRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.LinkedBlockingQueue;

/**
 * Created with IntelliJ IDEA.
 * User: zhangyong
 * Date: 13-7-28
 * Time: 下午2:10
 * To change this template use File | Settings | File Templates.
 */
public class AppendFilter extends IoFilterAdapter {

    private static final Logger logger = LoggerFactory.getLogger(AppendFilter.class);

    public void messageSent(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception {
        logger.info("filter...........");
        //若注释掉 则没有在 encode里 就没有数据可以收到了
        nextFilter.messageSent(session, writeRequest);
    }

}
